﻿using System;
using MyBasicLib;
using MyBasicLib.Data.ORMLiteNew;
using MyBasicLib.Collections.Generic;
namespace RUC.Core.Entities
{
    /// <summary>
    /// 
    /// </summary>
     
    [Table(TableName = "Organization", KeyName = "Id")]
    public partial class Organization :   ITreeNode
    {
		/// <summary>
        /// 
        /// </summary>
        public Organization()
        { 
        } 
		#region Public Properties 
		/// <summary>
        /// 组织Id
        /// </summary>  
        public String Id
        {
            set ; get ;
        }
		/// <summary>
        /// 父Id
        /// </summary>  
        public String ParentId
        {
            set ; get ;
        }
		/// <summary>
        /// 名称
        /// </summary>  
        public String Name
        {
            set ; get ;
        }
		/// <summary>
        /// 创建日期
        /// </summary>  
        [DbGenerated]
        public DateTime Created
        {
            set ; get ;
        }
		/// <summary>
        /// 
        /// </summary>  
        public Int32? Sort
        {
            set ; get ;
        } 
        /// <summary>
        /// 
        /// </summary>  
        public Boolean IsRunApartment
        {
            set;
            get;
        }

		#endregion
	}
}
